package com.wei.czz.common.vo.admin;

import com.wei.czz.common.jsr303.group.Save;
import com.wei.czz.common.jsr303.group.Update;
import com.wei.czz.common.tool.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wei
 * date: 2022-04-17 14:32:48
 * className: UserRiskVo 用户风控请求参数封装类
 * version: 1.0
 * description:
 */
@Getter
@Setter
public class UserRiskVo extends BaseEntity {

    /**
     * 风控主键
     */
    @NotNull(message = "风控主键不能为空", groups = { Update.class })
    private Long id;

    /**
     * 用户主键
     */
    @NotNull(message = "用户主键不能为空", groups = { Save.class, Update.class })
    private Long userId;

    /**
     * 风控类型[0-管理员操作 1-系统判定]
     */
    @NotNull(message = "风控类型不能为空", groups = { Save.class })
    private Integer riskType;

    /**
     * 风控/解除风控描述内容
     */
    @NotBlank(message = "风控/解除风控描述内容不能为空", groups = { Save.class, Update.class })
    private String word;

}
